﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
using System.Threading.Tasks;

namespace MediaUtility.Model
{
    /// <summary>
    /// 节目授权证书
    /// </summary>
    public class AuthorizationFilesDto
    {
        /// <summary>
        /// 序号
        /// </summary>
        public int ID { get; set; }
        /// <summary>
        /// CP编号
        /// </summary>
        public string CSPID { get; set; }
        /// <summary>
        /// CP名称
        /// </summary>
        public string CSPName { get; set; }
        /// <summary>
        /// 内容编号
        /// </summary>
        public string ProgramCode { get; set; }
        /// <summary>
        /// 内容名称
        /// </summary>
        public string ProgramName { get; set; }
        /// <summary>
        /// 版权开始日期
        /// </summary>
        public string LicensingStart { get; set; }
        /// <summary>
        /// 版权结束日期
        /// </summary>
        public string LicensingEnd { get; set; }
        /// <summary>
        /// 节目授权书源文件全路径
        /// </summary>
        public string SrcFilePath { get; set; }
        /// <summary>
        /// 节目授权书本地文件全路径
        /// </summary>
        public string OutFilePath { get; set; }
        /// <summary>
        /// 入库时间
        /// </summary>
        public DateTime CreateTime { get; set; }
        /// <summary>
        /// 转换为字符串数组
        /// </summary>
        /// <returns></returns>
        public static string[] ToArrayString()
        {
            return new string[6] { "CSPID", "CSPName", "ProgramCode", "ProgramName", "LicensingStart", "LicensingEnd" };
        }
    }
}
